package com.zy.dp.prototype.example2;

public class EnterpriseOrder implements OrderApi
{

	private String enterpriseName;
	private String productId;
	private int orderProductNum = 0;

	public String getEnterpriseName()
	{
		return enterpriseName;
	}

	public void setEnterpriseName(String enterpriseName)
	{
		this.enterpriseName = enterpriseName;
	}

	public String getProductId()
	{
		return productId;
	}

	public void setProductId(String productId)
	{
		this.productId = productId;
	}

	@Override
	public int getOrderProductNum()
	{
		return this.getOrderProductNum();
	}

	@Override
	public void setOrderProductNum(int num)
	{
		this.orderProductNum = num;

	}

	@Override
	public String toString()
	{

		return "本企业订单的订购企业是=" + this.enterpriseName + ",订购产品是="
				+ this.productId + ",订购数量为=" + this.orderProductNum;

	}

	@Override
	public OrderApi cloneOrder()
	{
		EnterpriseOrder order = new EnterpriseOrder();
		order.setEnterpriseName(this.enterpriseName);
		order.setProductId(this.productId);
		order.setOrderProductNum(this.orderProductNum);
		return order;
	}

}
